// 订单中心
export const ORDER_CENTER = '/guoke-deepexi-order-center/api/v1'
export const ORDER_CENTER_HOSSYN = '/guoke-deepexi-hossyn-order-center/api/v1'

// 财务管理-应收应付查询列表
export const payReceivableList = ORDER_CENTER + '/pay/OdcPayOrder/pageList'
// 财务管理-确定
export const OdcPayOrdersubmitById = ORDER_CENTER + '/pay/OdcPayOrder/submitById'
// 财务管理-应收应付详情-基础信息
export const payReceivableInfo = ORDER_CENTER + '/pay/OdcPayOrder/getById'
// 财务管理-应收应付详情-产品明细
export const OdcPayOrderItemList = ORDER_CENTER + '/pay/OdcPayOrderItem/pageList'
// 财务管理-应收应付详情-支付记录
export const payReceivableHistory = ORDER_CENTER + '/pay/OdcPaymentHistory/getById'
// 财务管理-应收应付详情-添加支付记录
export const addPayReceivable = ORDER_CENTER + '/pay/OdcPaymentHistory/savePaymentHistory'
// 寄售销售(采购)结算单详情
export const saleUpDetail = ORDER_CENTER + '/settle/OdcSettleOrder/getById'
// 寄售销售(采购)结算单详情(分页数据)
export const saleDownDetail = ORDER_CENTER + '/settle/OdcSettleOrderItem/pageList'
// 寄售结算单经销商审核驳回
export const auditRefuse = ORDER_CENTER + '/settle/OdcSettleOrder/auditRefuseById'
// 寄售结算单经销商审核通过
export const auditPass = ORDER_CENTER + '/settle/OdcSettleOrder/auditPassAndCreat'
// 寄售销售(采购)结算列表
export const settlementList = ORDER_CENTER + '/settle/OdcSettleOrder/pageList'
// 寄售销售(采购)结算单日志记录列表
export const settleOrderLog = ORDER_CENTER + '/settle/OdcSettleOrderLog/getById'
// 寄售结算单取消
export const cancelSettleOrder = ORDER_CENTER + '/settle/OdcSettleOrder/auditCancel'
// 寄售销售结算列表编辑发票号
export const updateInvoiceNum = ORDER_CENTER + '/settle/OdcSettleOrder/updateInvoiceById'
// 寄售采购tab切换状态数量
export const stateCountData = ORDER_CENTER + '/settle/OdcSettleOrder/stateCount'
// 寄售销售采购新建
export const settleSave = ORDER_CENTER + '/settle/OdcSettleOrder/save'
// 结算管理寄售销售（采购）编辑
export const settleUpdate = ORDER_CENTER + '/settle/OdcSettleOrder/update'

// 订单管理-批发采购/寄售销售、寄售采购订单列表
export const orderList = ORDER_CENTER + '/purchase/orderList'
// 订单管理-寄售需求订单/寄售补货需求订单列表
export const orderStatusCount = ORDER_CENTER + '/purchase/statusCount'
// 订单管理-采购方审核(批量)批发采购订单
export const orderCheck = ORDER_CENTER + '/purchase/check'
// 订单管理-采购方审核寄售需求订 单
export const saleOrderCheck = ORDER_CENTER + '/sale/check'
// 订单管理-查看批发采购/寄售采购（寄售销售）订单详情/审核页面
export const orderDetail = ORDER_CENTER + '/purchase/orderItem'
// 订单管理-查看寄售订单详情/审核页面
export const saleOrderDetail = ORDER_CENTER + '/sale/orderItem'
// 订单管理-批发采购批发销售详情的操作记录
export const operateRecord = ORDER_CENTER + '/purchase/OdcPurchaseOrderLog/log'
// 订单管理-寄售采购、寄售销售、跟台销售操作记录
export const saleOperateRecord = ORDER_CENTER + '/sale/OdcSaleOrderLog/log'

// 创建批发采购订单
export const createPurchaseOrder = ORDER_CENTER + '/purchase/createPurchaseOrder'
// 创建寄售需求订单/跟台订单
export const createSaleOrder = ORDER_CENTER + '/sale/createSaleOrder'

// 订单管理-取消订单 采购方取消批发采购订单
export const cancelPurchaseOrder = ORDER_CENTER + '/purchase/cancel'
// 订单管理-取消订单 采购方取消寄售需求订单
export const cancelSaleOrder = ORDER_CENTER + '/sale/cancel'
// 订单管理-批发采购订单编辑发票号
export const editInvoiceNo = ORDER_CENTER + '/purchase/invoice'

// 销售管理-销售订单跟踪-批发订单跟踪
export const purchaseOrderList = ORDER_CENTER + '/purchase/orderList'
// 销售管理-销售订单跟踪-长期寄售订单跟踪
export const saleOrderList = ORDER_CENTER + '/sale/orderList'
// 销售管理-销售订单跟踪-跟台订单跟踪
export const saleFollowList = ORDER_CENTER + '/sale/followList'
// 销售管理-寄售订单管理-寄售单 订单详情
export const consignOrderDetail = ORDER_CENTER + '/purchase/saleOne'
// 销售管理-寄售订单管理-寄售单 产品详情
export const consignProductDetail = ORDER_CENTER + '/purchase/OdcPurchaseOrderItem/saleItem'
// 退货单管理-退货列表
export const returnOrderList = ORDER_CENTER + '/returnGoods/OdcReturnOrder/pageList'
// 不同状态退货单数量
export const stateCount = ORDER_CENTER + '/returnGoods/OdcReturnOrder/stateCount'
// 退货单详情
export const returnOrderDetail = ORDER_CENTER + '/returnGoods/OdcReturnOrderItem/getOrderItemById'
// 确认退货单
export const confirmReturn = ORDER_CENTER + '/returnGoods/OdcReturnOrder/passAndCreatReplenish'
// 补货单列表
export const receiptOrderList = ORDER_CENTER + '/replenish/OdcRepOrder/pageList'
// 编辑订单
export const editPurchaseOrder = ORDER_CENTER + '/purchase/editPurchaseOrder'
// 采购方编辑寄售需求订单
export const editSaleOrder = ORDER_CENTER + '/sale/editSaleOrder'
// 不同状态补货单数量
export const receiptStateCount = ORDER_CENTER + '/replenish/OdcRepOrder/stateCount'
// 补货单详情
export const receiptOrderDetail = ORDER_CENTER + '/replenish/OdcRepOrderItem/getById'
// 销售管理-订单跟踪-寄售跟台订单数量
export const saleOrderStatusCount = ORDER_CENTER + '/sale/stateCount'
// 销售管理-订单跟踪-确认寄售销售订单
export const saleConsignmentOrderConfirm = ORDER_CENTER + '/sale/saleOrderConfirm'
// 销售管理-订单跟踪-确认批发销售订单
export const saleWholesaleOrderConfirm = ORDER_CENTER + '/purchase/purchaseOrderConfirm'
// 销售管理-订单跟踪-跟台订单详情
export const followOrderDetail = ORDER_CENTER + '/sale/followItem'
// 销售管理-订单跟踪-跟台订单确认
export const followOrderCheck = ORDER_CENTER + '/sale/followCheck'
// 销售管理-订单跟踪-跟台订单术后退回
export const returnAfterOperate = ORDER_CENTER + '/sale/operateAfterCheck'
// 采购管理-订单跟踪-创建批发采购入库单
export const createPurchaseInStorage = ORDER_CENTER + '/purchase/inStorage'
// 采购管理-订单跟踪-创建寄售需求入库单
export const createSaleInStorage = ORDER_CENTER + '/sale/inStorage'
// 销售管理-订单跟踪-创建销售退货单
export const createOrderReturn = ORDER_CENTER + '/returnGoods/OdcReturnOrder/save'
// 采购管理-订单跟踪-批发订单是否能生成入库单
export const purchaseOrderCanInStock = ORDER_CENTER + '/purchase/button'
// 采购管理-订单跟踪-寄售订单是否能生成入库单
export const saleOrderCanInStock = ORDER_CENTER + '/sale/button'
// 前结算-配送商端-新建订单
export const createOrder = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/createNeedOrder'
// 前结算-配送商端-批发销售订单列表
export const wholesaleOrderList = ORDER_CENTER + '/delivery/purchaseOrder'
// 前结算-配送商端-寄售补货需求订单列表
export const replenishmentOrderList = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/needOrder'
// 前结算-配送商端-批发销售订单列表-批量确认
export const batchConfirmOrderList = ORDER_CENTER + '/delivery/confirmPurOrderList'
export const batchConfirmOrder = ORDER_CENTER + '/delivery/confirmPurchase'
// 前结算-配送商端-批发销售订单列表-详情top信息
export const wholesaleTopOrderInfo = ORDER_CENTER + '/delivery/purchaseOne'
// 前结算-配送商端-批发销售订单列表-详情列表
export const wholesaleOrderDetailList = ORDER_CENTER + '/delivery/purchaseItem'
// 前结算-配送商端-批发销售(寄售补货))订单列表-部分发货，全部发货时配送明细列表
export const deliveryDetailList = ORDER_CENTER + '/beforeSettle/ocBsDelivery/itemList'
// 前结算-配送商端-批发销售订单列表-发货头部信息
export const deliveryTopInfo = ORDER_CENTER + '/delivery/getById'
// 前结算-配送商端-批发销售订单列表-发货列表
export const deliveryOrderList = ORDER_CENTER + '/beforeSettle/OcBsSaleOrderItem/pageList'
// 前结算-配送商端-批发销售（寄售补货）订单列表-确认发货
export const confirmDelivery = ORDER_CENTER + '/beforeSettle/ocBsDelivery/save'
// 前结算-配送商端-批发销售（寄售补货）订单列表-提交扫码信息
export const confirmCodeData = ORDER_CENTER + '/beforeSettle/OcBsDeliveryDistributor/save'

// 前结算-配送商端-寄售补货需求订单列表-确认订单
export const confirmOrder = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/confirmNeed'
// 前结算-配送商端-寄售补货需求订单列表-详情top信息
export const replenishmentTopDetail = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/getNeedById'
// 前结算-配送商端-寄售补货需求订单列表-top详情列表
export const replenishmentTopDetailList = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/needItem'
// 前结算-配送商端-寄售补货需求订单列表-发货头部信息
export const replenishmentDeliveryTopInfo = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/getById'
// 前结算-配送商端-寄售补货需求订单列表-发货列表
export const replenishmentDeliveryList = ORDER_CENTER + '/beforeSettle/OcBsNeedSaleItem/pageList'
// 采购管理-订单跟踪-批发采购订单删除
export const deletePurchaseOrder = ORDER_CENTER + '/purchase/deleteOrder'
// 采购管理-订单跟踪-寄售订单删除
export const deleteSaleOrder = ORDER_CENTER + '/sale/deleteOrder'
// 结算前 - 院端
// 新建采购退货单（院端）
export const createReturn = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/createReturn`
// 新建添加采购产品
export const addReturnProduct = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/addReturnProduct`
// 获取退回产品列表
export const getProductList = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/itemList`
// 查询单个产品信息
export const getProductItem = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/itemOne`
export const cancelReturnOrder = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/cancel`
// 提交退货接口
export const submitReturnOrder = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/submitReturn`
// 退货管理
// 采购退货订单列表（院端）
export const returnList = `${ORDER_CENTER}/beforeSettleReturn/OcBsPurchaseReturn/returnList`
// 查询质检退货列表-医院端
export const checkReturnHospitalAll = `${ORDER_CENTER}/beforeSettle/CheckReturn/CheckReturnHospitalAll`

// 采购退货订单列表（配送商端）
export const getReturnList = `${ORDER_CENTER}/beforeSettleReturn/OcBsReceiveReturn/pageList`

// 采购退货详情（配送商端）
export const getReturnDetailById = `${ORDER_CENTER}/beforeSettleReturn/OcBsReceiveReturn/getById`

// 结算前-院外协同-术后退回-明细
export const getTableById = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/getTableById'
// 结算前-院外协同-术后退回-提交
export const returnOrderSubmit = ORDER_CENTER + '/beforeSettle/OcBsOperateReturn/returnOrder'
// 结算前-院外协同-术后退回-产品
export const needItemProduct = ORDER_CENTER + '/delivery/OcBsNeedSaleOrder/needItem'
// 结算前-院外协同-术后退回-详情-退回数据
export const ocBsOperateItemList = ORDER_CENTER + '/beforeSettle/OcBsOperateItem/itemList'
// 结算前-院外协同-术后退回-详情-退回信息
export const returnOneInfo = ORDER_CENTER + '/beforeSettle/OcBsOperateReturn/returnOne'
// 寄售退货-- 待收货信息列表（配送商端）
export const getByCheckDeliveryReturn = `${ORDER_CENTER}/beforeSettle/CheckReturn/getByCheckDeliveryReturn`

// 寄售退货-- 添加收货扫码信息（配送商端）
export const addCheckItemDetai = `${ORDER_CENTER}/beforeSettle/CheckReturn/addCheckItemDetai`

// 寄售退货-- 确认收货（配送商端）
export const addOcBsCheckReceiveItem = `${ORDER_CENTER}/beforeSettle/CheckReturn/addOcBsCheckReceiveItem`

//  医院端--寄售需求订单--列表
export const attrHospitalNeedOrder = ORDER_CENTER + '/hospital/OcBsNeedOrder/needOrder'

//  医院端--寄售需求订单--根据ID查看详情
export const attrHospitalNeedOrderItem = ORDER_CENTER + '/hospital/OcBsNeedOrder/needOrderItem'

//  医院端--寄售需求订单--获取收货明细
export const attrRecceiveDetail = ORDER_CENTER + '/beforeSettle/ocBsReceive/itemList_1569490045747'

//  医院端--寄售需求订单--收货列表
export const attrReceiveList = ORDER_CENTER + '/hospital/OcBsNeedOrder/queryBatchList'

//  医院端--寄售需求订单--待质检信息
export const attrQueryNeedDetailedList = ORDER_CENTER + '/beforeSettle/ocBsDelivery/queryNeedDetailedList'

//  医院端--寄售需求订单--获取订单明细
export const attrOrderDetail = ORDER_CENTER + '/beforeSettle/ocBsDelivery/queryPurchaseList'

//  医院端--寄售需求订单--质检/收货订单明细
export const attrQueryPurchaseList = ORDER_CENTER + '/beforeSettle/ocBsDelivery/queryNeedList'

//  医院端--寄售需求订单--待收货信息
export const attrOrderWaitDetail = ORDER_CENTER + '/beforeSettle/OcBsNeedOrderItem/pageList'

//  医院端--寄售需求订单--部分/已完成--收货明细
export const attrItemList = ORDER_CENTER + '/beforeSettle/ocBsReceive/itemList'

//  医院端--寄售需求订单--质检完成
export const attrAddNeedDetailedList = ORDER_CENTER + '/beforeSettle/ocBsDelivery/addNeedDetailedList'

//  医院端--寄售需求订单--确认收货
export const attrSave = ORDER_CENTER + '/beforeSettle/ocBsReceive/save'

//  医院端--寄售需求订单--提交收货
export const attrSubmit = ORDER_CENTER + '/beforeSettle/OcBsReceiveDistributor/save'

//  医院端--寄售需求订单--撤销
export const attrCancle = ORDER_CENTER + '/hospital/cancel'

// 配送商端-- 结算管理--待结算列表
export const querySettleDistributorList = ORDER_CENTER + '/beforeSettle/SettleDistributor/querySettleDistributorList'

// 配送商端-- 结算管理--结算单列表
export const querySettleDistributor = ORDER_CENTER + '/beforeSettle/SettleDistributor/querySettleDistributor'

// 配送商端-- 结算管理--获取产品明细列表
export const getBySettleDistributor = ORDER_CENTER + '/beforeSettle/SettleDistributor/getBySettleDistributor'

// 配送商端-- 结算管理--获取产品详情头部信息
export const getBySettleDistributorOrder = ORDER_CENTER + '/beforeSettle/SettleDistributor/getBySettleDistributorOrder'

// 配送商端-- 结算管理--新增发票
export const addSettleOrderBill = ORDER_CENTER + '/beforeSettle/SettleDistributor/addSettleOrderBill'

// 配送商端-- 结算管理--获取发票信息
export const queyrSettleDistributorBill = ORDER_CENTER + '/beforeSettle/SettleDistributor/queyrSettleDistributorBill'

// 医院端-- 结算管理--待结算列表
export const querySettlePurchaserItemList = ORDER_CENTER + '/beforeSettle/SettleDistributor/querySettlePurchaserItemList'

// 医院端-- 结算管理--待结算列表
export const querySettlePurchaserList = ORDER_CENTER + '/beforeSettle/SettleDistributor/querySettlePurchaserList'

// 医院端-- 结算管理--获取头部信息
export const getBySettlePurchaserOrder = ORDER_CENTER + '/beforeSettle/SettleDistributor/getBySettlePurchaserOrder'

// 医院端-- 结算管理--获取产品明细列表
export const getBySettlePurchaser = ORDER_CENTER + '/beforeSettle/SettleDistributor/getBySettlePurchaser'

// 医院端-- 结算管理--改变结算单状态
export const updateSettlePurchaser = ORDER_CENTER + '/beforeSettle/SettleDistributor/updateSettlePurchaser'

// 配送商端-- 退货管理--寄售退货订单列表
export const checkReturnDeliveryAll = ORDER_CENTER + '/beforeSettle/CheckReturn/CheckReturnDeliveryAll'

// 查询质检退货订单详情(医院端，配送商端公用)
export const getByCheckHospitalReturn = `${ORDER_CENTER_HOSSYN}/beforeSettle/CheckReturn/getByCheckHospitalReturn`
// 采购退货订单列表（院端）
export const getReturnForm = `${ORDER_CENTER_HOSSYN}/beforeSettle/CheckReturn/getByCheckReturn`
//V3.0-随货同行单-获取产品列表
export const PeerList = ORDER_CENTER + '/sale/OdcSaleOrderOs/outGoodsDocumentsByOrderId'

//销售管理-销售跟台跟踪-跟台订单跟踪-下载
export const downOutGoodsDocumentsExcel = ORDER_CENTER + '/sale/OdcSaleOrderOs/downOutGoodsDocumentsExcel'
